﻿@model Garcon.Waiter.Models.ManageUserProfileModel
@{
    ViewBag.Title = "Manage User Profile";
}


<hgroup class="title">
    <h1>@ViewBag.Title.</h1>
    <p class="message-success">@ViewBag.StatusMessage</p>
    @*<h2>Manage User Profile.</h2>*@
</hgroup>

@using (Html.BeginForm())
{
    @Html.AntiForgeryToken()
    @Html.ValidationSummary()

    <fieldset>
        <legend>Manage User Profile Form</legend>
        <ol>
            <li>
                @Html.LabelFor(m => m.FirstName)
                @Html.TextBoxFor(m => m.FirstName/*, new { id = "resizable10", title = "Mamlakatda ob-havo qanaqa? 4-fasl mavjudmi?", rows = "5", cols = "30" }*/)
                @Html.ValidationMessageFor(m => m.FirstName)
            </li>
            <li>
                @Html.LabelFor(m => m.LastName)
                @Html.TextBoxFor(m => m.LastName)
                @Html.ValidationMessageFor(m => m.LastName)
            </li>
            <li>
                @Html.LabelFor(m => m.Address)
                @Html.TextBoxFor(m => m.Address)
                @Html.ValidationMessageFor(m => m.Address)
            </li>
            <li>
                @Html.LabelFor(m => m.Phone)
                @Html.TextBoxFor(m => m.Phone)
                @Html.ValidationMessageFor(m => m.Phone)
            </li>
            <li>
                @Html.LabelFor(m => m.Email)
                @Html.TextBoxFor(m => m.Email)
                @Html.ValidationMessageFor(m => m.Email)
            </li>
            <li>
                @Html.LabelFor(m => m.RestaurantName)
                @Html.TextBoxFor(m => m.RestaurantName)
            </li>
            <li>
                @Html.LabelFor(m => m.TablesAmount)
                @Html.TextBoxFor(m => m.TablesAmount)
            </li>
            <li>
                @Html.LabelFor(m => m.Photo)
                @if (Model.Photo != null)
                {
                    <img src="data:image;base64,@System.Convert.ToBase64String(Model.Photo)" />
                }
            </li>
        </ol>
        <input type="submit" value="Update" />
    </fieldset>
}

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
